﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop_of_Cl.Logic
{
    [Serializable]
    class Products
    {
        public int id;
        string NameOfProduct;
        double CostOfProduct;
        double CostOfRealization;
        string Season;
        string Country;
        string ForPerson;
        int Period;
        int Size;
        string categories;
        DateTime DateOfEdding;

        public Products(string _NameOfProduct, double _CostOfProduct, string _Season, string _Country,
                        string _ForPerson, int _Period, int _Size, int procent, int indx)
        {// создаём конструктор
            NameOfProduct = _NameOfProduct;
            CostOfRealization = _CostOfProduct * procent;
            Season = _Season;
            Country = _Country;
            ForPerson = _ForPerson;
            Period = _Period;
            Size = _Size;
            id = indx;
         }

        public string _NameOfProduct
        {
            get { return NameOfProduct; }
        }
        public double _CostOfProduct
        {
            get { return CostOfRealization; }
            set { CostOfRealization = value; }
        }
        public string _Season
        {
            get { return Season; }
        }
        public string _Country
        {
            get { return Country; }
        }
        public string _ForPerson
        {
            get { return ForPerson; }
        }
        public int _Period
        {
            get { return Period; }
            set { Period = value; }
        }
        public int _Size
        {
            get { return Size; }
            set { Size = value; }
        }


    }
}
